package com.k1998.mybatis.service.Impl;

import com.k1998.mybatis.bean.User;
import com.k1998.mybatis.mapper.UserMapper;
import com.k1998.mybatis.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> findAll() {
        List<User> users = userMapper.findAll();
        return users;
    }
}
